package com.woniuxy.sddfp.common.model.vo.user;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Arrays;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ApiModel("登陆返回信息")
public class LoginVo {

   @ApiModelProperty("用户ID")
   private Long id;

   @ApiModelProperty("用户名")
   private String userName;

   @ApiModelProperty("手机")
   private String phone;
    
   @ApiModelProperty("返回token")
   private String token;

   public static void main(String[] args) {
      //正常写法
      LoginVo loginVo = new LoginVo();
      loginVo.setUserName("woniuxy");
      System.out.println("loginVo = " + loginVo);

      //装X写法
      LoginVo woniuxy = LoginVo.builder().userName("woniuxy").build();
      //构建者模式  链式编程  steam中都是这中写法
      System.out.println("woniuxy = " + woniuxy);
   }
}